<div id="content">
	<div class="row s_page_title" *ngIf="pageType ==='new'">
		<sa-big-breadcrumbs [items]="['设备安装管理','设备安装记录','新增安装记录']" icon="fa fa-wrench" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="row s_page_title" *ngIf="pageType ==='updata'">
		<sa-big-breadcrumbs [items]="['设备安装管理','设备安装记录','编辑安装记录']" icon="fa fa-wrench" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header">
			<h1 class="page_detail_title">{{page_title}}安装记录</h1>
		</div>
		<div class="row" style="margin-top:5px;">
		<div class="col-xs-12">
			<form  id="recordForm"  class="form-horizontal" (ngSubmit)="onSubmit()" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">

				<div class="form-group" *ngIf="pageType ==='updata'">
					<label class="control-label col-sm-1 no-padding-right">设备ID</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="deviceId" [(ngModel)]='page.deviceId' disabled onfocus="this.blur()" type="text"/>
						</div>
					</div>
				</div>
				
				<div class="form-group" *ngIf="pageType ==='updata'">
					<label class="control-label col-sm-1 no-padding-right">车牌号码</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="carNumber" [(ngModel)]='page.carNumber' disabled onfocus="this.blur()" type="text"/>
						</div>
					</div>
				</div>
				
				<div class="form-group s_fix_select2" *ngIf="pageType ==='new'">
					<label class="control-label col-sm-1 no-padding-right">车牌号码<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input type="hidden"  class="form-control" id="carNumberInput" name="carNumberInput" [(ngModel)]='page.carNumber'>
							<select   class="select2 form-control" style="width:100%" name="carNumber" id="carNumberSelect2">
								<option value=''></option>
							</select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">打磨清洗<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix fix_select2">
							<input type="hidden"  class="form-control" id="polishInstallerInput" name="polishInstallerInput" [(ngModel)]='page.polishInstaller'>
							<select id="polishSelect2" style="width:100%" name="polishInstaller" class="form-control select2"  multiple></select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">贴片<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix fix_select2">
							<input type="hidden"  class="form-control" id="patchInstallerInput" name="patchInstallerInput" [(ngModel)]='page.patchInstaller'>
							<select id="patchSelect2" style="width:100%" name="patchInstaller" class="form-control select2"  multiple></select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">封胶<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix fix_select2">
							<input type="hidden"  class="form-control" id="sealantInstallerInput" name="sealantInstallerInput" [(ngModel)]='page.sealantInstaller'>
							<select id="sealantSelect2" style="width:100%"  name="sealantInstaller" class="form-control select2"  multiple></select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">穿线<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix fix_select2">
							<input type="hidden"  class="form-control" id="threadingInstallerInput" name="threadingInstallerInput" [(ngModel)]='page.threadingInstaller'>
							<select id="threadingSelect2" style="width:100%"  name="threadingInstaller" class="form-control select2"  multiple></select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">主机<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix fix_select2">
							<input type="hidden"  class="form-control" id="hostInstallerInput" name="hostInstallerInput" [(ngModel)]='page.hostInstaller'>
							<select id="hostSelect2" style="width:100%"  name="hostInstaller" class="form-control select2"  multiple></select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">开始安装时间<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="startInstallTime" id="startInstallTime" autocomplete="off" [(ngModel)]='page.startInstallTime' type="text" placeholder="请选择" />
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">完成安装时间<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="installTime" id="installTime" autocomplete="off" [(ngModel)]='page.installTime' type="text" placeholder="请选择" />
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">安装地址</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="installAddress" [(ngModel)]='page.installAddress' type="text" placeholder="安装地址" autocomplete='street-address'/>
						</div>
					</div>
				</div>

				<div class="form-group" *ngIf="pageType ==='updata'">
					<label class="control-label col-sm-1 no-padding-right">录入人员</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="recorder" [(ngModel)]='page.recorder' disabled onfocus="this.blur()" type="text" placeholder="录入人员" />
						</div>
					</div>
				</div>
				
				<div class="form-group" *ngIf="pageType ==='updata'">
					<label class="control-label col-sm-1 no-padding-right">审核状态</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<select   class="form-control" placeholder="审核状态" name="auditStatus" disabled onfocus="this.blur()" [(ngModel)]='page.auditStatus' (change)="auditStatusChange($event.target.value)" >
								<option value=''>请选择</option>
								<option *ngFor="let item of auditStatusList" [value]='item.value'>{{item.label}}</option>
							</select>
						</div>
					</div>
				</div>
				
				<div class="form-group" *ngIf="pageType ==='updata'&& page.auditStatus != 0">
					<label class="control-label col-sm-1 no-padding-right">审核人员</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="auditorUser" [(ngModel)]='page.auditorUser' disabled onfocus="this.blur()" type="text" placeholder="审核人员" />
						</div>
					</div>
				</div>

				<div class="form-group" *ngIf="pageType ==='updata'&& page.auditStatus != 0">
					<label class="control-label col-sm-1 no-padding-right">审核时间</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="auditorTimeStr" id="auditorTime" autocomplete="off" disabled onfocus="this.blur()" [(ngModel)]='page.auditorTime' type="text" placeholder="审核时间" />
						</div>
					</div>
				</div>

				<div class="center">
					<button type="submit" class="btn btn-primary" *ngIf='page_title === "新增"' >添加</button>
					<button type="submit" class="btn btn-primary" *ngIf='page_title === "编辑"' >保存</button>
					<button type="button" (click)='goBack()' class="btn default">返回</button>
				</div>
			</form>
		</div>
	</div>
	</div>
</div>